package com.cltech.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * Created by Administrator on 2019/4/9.
 */
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysOrganizationDto {
    private String id;
    @NotBlank(message="名称不能为空")
    @Size(max = 255, message = "名称最大允许输入255个字符")
    private String name;
    @NotBlank(message="编码名称不能为空")
    @Size(max = 255, message = "编码最大允许输入255个字符")
    private String code;
    private String parentId;
    private String parentName;
    private String parentCode;
}
